package com.ruoyi.community.service.ec.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.mapper.EcAddressMapper;
import com.ruoyi.community.domain.EcAddress;
import com.ruoyi.community.service.ec.IEcAddressService;

/**
 * 社区电商Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-15
 */
@Service
public class EcAddressServiceImpl implements IEcAddressService 
{
    @Autowired
    private EcAddressMapper ecAddressMapper;

    /**
     * 查询社区电商
     * 
     * @param addressId 社区电商ID
     * @return 社区电商
     */
    @Override
    public EcAddress selectEcAddressById(Integer addressId)
    {
        return ecAddressMapper.selectEcAddressById(addressId);
    }

    /**
     * 查询社区电商列表
     * 
     * @param ecAddress 社区电商
     * @return 社区电商
     */
    @Override
    public List<EcAddress> selectEcAddressList(EcAddress ecAddress)
    {
        return ecAddressMapper.selectEcAddressList(ecAddress);
    }

    /**
     * 新增社区电商
     * 
     * @param ecAddress 社区电商
     * @return 结果
     */
    @Override
    public int insertEcAddress(EcAddress ecAddress)
    {
        return ecAddressMapper.insertEcAddress(ecAddress);
    }

    /**
     * 修改社区电商
     * 
     * @param ecAddress 社区电商
     * @return 结果
     */
    @Override
    public int updateEcAddress(EcAddress ecAddress)
    {
        return ecAddressMapper.updateEcAddress(ecAddress);
    }

    /**
     * 批量删除社区电商
     * 
     * @param addressIds 需要删除的社区电商ID
     * @return 结果
     */
    @Override
    public int deleteEcAddressByIds(Integer[] addressIds)
    {
        return ecAddressMapper.deleteEcAddressByIds(addressIds);
    }

    /**
     * 删除社区电商信息
     * 
     * @param addressId 社区电商ID
     * @return 结果
     */
    @Override
    public int deleteEcAddressById(Integer addressId)
    {
        return ecAddressMapper.deleteEcAddressById(addressId);
    }
}
